package pe.gob.minam.sismon.web.config;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;


public class ConverterToUpperString implements Converter{
    
    public static final String CONVERTER_ID = "bvl.gam.converter";

    @Override
    public Object getAsObject(FacesContext context, UIComponent component,
	    String value) {
	return value.toUpperCase();
    }

    @Override
    public String getAsString(FacesContext context, UIComponent component,
	    Object value) {
	return value.toString().toUpperCase();
    }
}
